<template>
    <div>
    <el-backtop></el-backtop>
        <div class="header">
            <router-link to="/"><el-button class="return_btn" ><i class="el-icon-back"></i>返回首页</el-button></router-link>
            <div class="header_title">
                <h2>旅食记</h2>
                <h3>{{city}}</h3>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: 'Header',
    props: {
        city:{
            type:String,
            default:''
        }
    },
    data() {
        return {
            
        };
    },

    
};
</script>

<style scoped>
.header {
    width: 100%;
    height: 100px;
    /* background-color: #485641; */
}
.header_title {
    position: relative;
    margin: 0 auto;
    width: 60%;
    height: 100%;
    border-bottom: 1px solid #000;
    font-family: NSimSun;

}
.header_title h2 {
    position: absolute;
    margin-top: 30px;
    font-size: 50px;
}
.header_title  h3 {
    position: absolute;
    margin-top: 40px;
    margin-left: 48%;
    font-size: 36px;
}
.return_btn {
    float: left;
    margin-top: 20px;
    margin-left: 20px;
    opacity: 0.9;
}
</style>